const EnumRoleType = {
  ADMIN: 'admin',
  DEFAULT: 'admin',
  DEVELOPER: 'developer',
}

//基础数据的有效性状态
const BasicDataStatus = {
  STATUS_AVAIABLE: '1',
  STATUS_DISABLE: '0',
}

const ListMenuType = {
  MENU_UPDATE: 1,
  MENU_DELETE: 2,
  MENU_ARRIVE: 4,
  MENU_REPORT: 8,
  MENU_PAY: 16,
  MENU_DETAIL: 32,
  MENU_XML: 64,
  MENU_CREATE: 128,
  MENU_PERMISSION: 256,
  MENU_CHANGESTATUS: 512,
}

const LanguageType = {
  LANGUAGE_CHN: 1,
  LANGUAGE_LOCAL: 0,
}

const UIStatus = {
  DEFAULT: -2,
  UPDATE_GET_SUCCESS: 0,
  ARRIVE_AND_PAY_GET_SUCCESS: 1,
}

const SysUserState = {
  USER_VALID: 1,
  USER_UNVALID: 0,
}
const SwiftCode = {
  ASB: { name: 'ASB Bank', SwiftCode: 'ASBBNZ2A' },
  BNZ: { name: 'Bank of New Zealand', SwiftCode: 'BKNZNZ22' },
  ANZ: { name: 'ANZ Bank New Zealand Limited', SwiftCode: 'ANZBNZ2' },
  WPC: { name: 'Westpac New Zealand Limited', SwiftCode: 'WPACNZ2W' },
  Kiwi: { name: 'KiwiBank Limited', SwiftCode: 'KIWINZ2' },
}
const titleType = [
  { value: 'Mrs', key: '0' },
  { value: 'Mr', key: '1' },
  { value: 'Ms', key: '2' },
  { value: 'Miss', key: '3' },
]
// 支付功能的枚举类型
const PaymentType = {
  Salary: 0,
  Commission: 1,
  Expense: 2,
  AdjustAccount: 3,
  Interest: 4,
  Other: 5,
}
const menuVisible = {
  visible: 1,
  unVisible: 2,
}


module.exports = {
  EnumRoleType,
  ListMenuType,
  SysUserState,
  UIStatus,
  LanguageType,
  PaymentType,
  SwiftCode,
  titleType,
  BasicDataStatus,
  menuVisible,
}
